/**
 * Created by baiguiren on 2/9/17.
 */

//todo 登陆验证

let auth = function (req, res, next) {
  if (!req.session.user) {
    req.session.user = 'test session';
    res.send('bad request');
  } else {
    next();
  }
};

exports = module.exports = auth;